﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Ruleweaver
{
	[TestFixture]
	public class CheckFixture
	{
		[Test]
		public void ThatDoesNotReturnNull()
		{
			Assert.IsNotNull(Check.That(1));
		}

		[Test]
		public void ThatHasSameTarget()
		{
			Assert.AreEqual(1, Check.That(1).Target);
		}

		[Test]
		public void ThatPassesByDefault()
		{
			Assert.IsTrue(Check.That(1).Apply());
		}

		[Test]
		public void ImplicitInvocationApplies()
		{
			Assert.IsFalse(Check.That(0).IsEqualTo(1));
		}
	}
}